import { AppRouteRecordRaw } from '../types';
import { DEFAULT_LAYOUT } from '../base';

const MARKDOWN: AppRouteRecordRaw = {
  path: '/answer',
  name: 'answer',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.user.answer',
    requiresAuth: true,
    icon: 'icon-book',
    order: 4,
  },
  children: [
    {
      path: 'list',
      name: 'answerList',
      component: () => import('@/views/client/answer/index.vue'),
      meta: {
        locale: 'menu.user.answer.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'details',
      name: 'answerDetails',
      component: () => import('@/views/client/answer/answer.vue'),
      meta: {
        locale: 'menu.user.answer.details',
        requiresAuth: true,
        hideInMenu: true,
        roles: ['*'],
      },
    }
  ]
};

export default MARKDOWN;
